﻿using System;
using System.Drawing;
using System.IO;
using FileSystemCustomClasses.Framework;

namespace FileSystemCustomClasses
{
	public class FileSystemItem
	{
		public string FullName { get; set; }
		public string Name { get; set; }
		public string Path { get; set; }
		public long? Length { get; set; }
		public DateTime CreateDate { get; set; }
		public DateTime ModifyDate { get; set; }
		public bool IsReadOnly { get; set; }
		public bool IsHidden { get; set; }
		public bool IsArchive { get; set; }
		public bool IsCompressed { get; set; }
		public bool IsEncrypted { get; set; }
		public bool IsMarked { get; set; }
		public Icon SmallIcon { get; set; }

		public FileSystemItem(FileSystemInfo argInfoItem)
		{
			//Use this to get the small Icon
			SmallIcon = NativeMethods.GetFileIcon(argInfoItem.FullName);

		}

		public override string ToString()
		{
			return Name;
		}
	}
}